const mongoose = require('mongoose');
const ParentAdapter = require('./../default-report/default-data-adapter');
const TestCase = require('./../../../mongo/test-case');

class DataAdapter extends ParentAdapter {
  getVersionTests(versionId) {
    return TestCase.find({ versionId: mongoose.Types.ObjectId(versionId) }, ['functionId', 'kind', 'resultKind', 'number', 'identifierNumber', 'userDefinedFields']);
  }
}

module.exports = DataAdapter;
